{extend name='public/layout' /}
{block name='content'}
<div class="main">
    <div class="position">
        <p>
            您当前的位置：<a href="{:url('Index/index')}">{$site.title}</a> > <a href="{:url('Question/index')}">问答</a>
        </p>
    </div>

    <div class="overflow_h">
        <div class="house_l">
                <div class="screen_box">
                    <div class="screen_box01 overflow_h">
                        <ul style="width:100%;">
                            <li style="float:right;"><a href="{:url('Question/add')}" style="color:#fff;" class="but23">我要提问</a></li>
                            <li><a href="{:url('Question/index',['cate_id'=>0])}" {if condition='$solve eq 0'}class="on"{/if}>全部问题</a></li>
                            <li><a title="已解决问题" href="{:url('Question/index',['solve'=>1,'cate_id'=>$cate_id])}" {if condition='$solve eq 1'}class="on"{/if}>已解决</a></li>
                            <li><a title="待觖决问题" href="{:url('Question/index',['solve'=>2,'cate_id'=>$cate_id])}" {if condition='$solve eq 2'}class="on"{/if}>待解决</a></li>
                        </ul>
                    </div>
                </div>
            <div class="ask_list_t02">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    {volist name="lists" id='vo' empty='<tr><td>暂无数据</td></tr>'}
                    <tr>
                        <td><span class="org">[<a title="{$vo.title}" href="{:url('Question/lists',['cate_id'=>$vo['cate_id']])}">{present name='cate["cate"][$vo.cate_id]'}{$cate['cate'][$vo['cate_id']]['name']}{/present}</a>]</span><a title="{$vo.title}" href="{:url('Question/detail',['id'=>$vo['id']])}">{$vo.title}</a></td>
                        <td>
                            {if condition='$vo.option eq 0'}
                            <span class="but34">待解决</span>
                            {else /}
                            <span class="but33">已解决</span>
                            {/if}
                        </td>
                        <td align="center">
                            {$vo.create_time|date='Y-m-d',###}
                        </td>
                    </tr>
                    {/volist}
                </table>
                <div class="plastic_bottom_pages">

                </div>
            </div>
        </div>
        <div class="house_r">
            <div class="m_t_15">
                <div class="ask_fenlei">
                    <h1 class="ask_fenl">问答分类</h1>
                    {volist name="cate['tree']" id='val'}
                    <h2>{$val.name}</h2>
                    <ul class="overflow_h">
                        {present name='val._child' id='vo'}
                        {volist name='val._child' id='vo'}
                        <li><a title="{$vo.name}" href="{:url('Question/index',['cate_id'=>$vo['id']])}">{$vo.name}</a></li>
                        {/volist}
                        {/present}
                    </ul>
                    {/volist}
                </div>
            </div>
        </div>
    </div>
</div>
{/block}